var utils = require('./exports/utils')
var constant = require('./exports/constant')
var point_map = require('./exports/point_map')
var ad_util = require('./exports/ad_util')
var ad = require('./ad')
var bless = require('./bless')
var gold_video = require('./gold_video')
var read_ad = require('./read_ad')
var read = require('./read')
var treasure = require('./treasure')
var video = require('./video')
var novel = require('./novel')

  function main() {
    var index = 0;
    while (true) {
      if (index > 100) {
        return;
      }
      video.go_page_from_home();
      sleep(2 * 1000);
      treasure.go_page_from_home();
      sleep(2 * 1000);
      ad.go_page_from_home();
      sleep(2 * 1000);
      console.show();
      console.log("在等待下一个轮回,20s");
      sleep(20 * 1000);
      console.hide();
      sleep(2 * 1000);
      index = index + 1;
    }
  }
  main();
  